import request from '../../utils/request';

export const deployPage = query => {
    return request({
        url: '/deploy/page',
        method: 'get',
        params: query
    });
};

export const deploySave = data => {
    return request({
        url: '/deploy/save',
        method: 'post',
        data: data
    });
};

export const deployUpdate = data => {
    return request({
        url: '/deploy/update',
        method: 'put',
        data: data
    });
};

export const deployStatus = data => {
    return request({
        url: '/deploy/status/' + data,
        method: 'post'
    });
};

export const deployStart = data => {
    return request({
        url: '/deploy/start/' + data,
        method: 'post'
    });
};

export const deployStop = data => {
    return request({
        url: '/deploy/stop/' + data,
        method: 'post'
    });
};

export const deployDelete = data => {
    return request({
        url: '/deploy/delete/' + data,
        method: 'delete'
    });
};